#ifndef					_RATINGGUI_H_
#define					_RATINGGUI_H_

#include <vector>
#include <Irrlicht/irrlicht.h>
#include <hash_map>
#include <string>

class CRatingGUI
{
public:
	CRatingGUI();
	virtual ~CRatingGUI();

	enum
	{
		NUMOFREVIEW = 10,
		NUMOFLABEL = 5,
	};

	void				SetRating(int nth, int value, float avgEmotion);
	void				SetNumComments(int i, int j, int numComments);
	void				Update();
	void				Reset();
	int					Index(std::string name);
private:
	std::vector<std::pair<int, float> > 	m_rating;
	std::hash_map<std::string, int>			m_nodeMap;
	std::hash_map<int, std::vector<std::pair<int, float> >	> m_indexInfo;
	std::hash_map<int, std::vector<int>>			m_Comments;

	inline int			m_Range(float value);

protected:

};

#endif					//_RATINGGUI_H_

